﻿<phone:PhoneApplicationPage 
    x:Class="FlickrWP7.AuthLocation"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="FLICKR FOR WINDOWS PHONE 7" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="authenticate" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>

        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <TextBlock Text="Navigate to the URL below on a desktop PC to get the mini-token:" Width="430" TextWrapping="Wrap" Style="{StaticResource PhoneTextNormalStyle}" Margin="12,38,12,511" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="13,102,0,0" FontWeight="Bold" VerticalAlignment="Top" Text="www.flickr.com/auth-72157625015033978" />
            <TextBlock Margin="12,152,14,371" Style="{StaticResource PhoneTextNormalStyle}" Text="Or click on the button below to navigate on the phone. You will need to provide your Flickr user credentials." TextWrapping="Wrap" Width="430" />
            <Button Content="Navigate to URL" Height="72" HorizontalAlignment="Left" Margin="0,242,0,0" Name="browserNavigate" VerticalAlignment="Top" Width="450" Click="browserNavigate_Click" />
            <TextBlock Margin="12,330,14,193" Style="{StaticResource PhoneTextNormalStyle}" Text="Once you authorize the application, enter the mini-token in the boxes below:" TextWrapping="Wrap" Width="430" />
            <TextBox Height="72" HorizontalAlignment="Left" Margin="43,399,0,0" Name="txtTokenA" MaxLength="3" VerticalAlignment="Top" Width="114" />
            <TextBox Height="72" HorizontalAlignment="Left" Margin="163,399,0,0" MaxLength="3" Name="txtTokenB" VerticalAlignment="Top" Width="114" />
            <TextBox Height="72" HorizontalAlignment="Left" Margin="283,399,0,0" MaxLength="3" Name="txtTokenC" VerticalAlignment="Top" Width="114" />
            <TextBlock Margin="155,420,282,154" Style="{StaticResource PhoneTextNormalStyle}" Text="-" TextWrapping="Wrap" />
            <TextBlock Margin="277,420,160,154" Style="{StaticResource PhoneTextNormalStyle}" Text="-" TextWrapping="Wrap" />
            <Button Content="Use Token" Height="72" HorizontalAlignment="Left" Margin="0,477,0,0" Name="button1" VerticalAlignment="Top" Width="450" Click="button1_Click" />
        </Grid>
    </Grid>

</phone:PhoneApplicationPage>
